//
//  KZMineCell.m
//  xiaorizi
//
//  Created by kun on 15/10/29.
//  Copyright © 2015年 origin. All rights reserved.
//

#import "KZMineCell.h"
#import "UIImageView+WebCache.h"

@interface KZMineCell ()

@property (weak, nonatomic) IBOutlet UIImageView *evetsImgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;


@end

@implementation KZMineCell

- (void)awakeFromNib {
    // Initialization code
    
    self.evetsImgView.layer.cornerRadius = 4;
    self.evetsImgView.clipsToBounds = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(EveryDayModel *)model
{
    _model = model;
    
    //初始化数据显示
    [self.evetsImgView sd_setImageWithURL:[NSURL URLWithString:model.imgs]];
    self.titleLabel.text = model.title;
}


@end
